﻿using System;
using Solution.Controls;
using Solution.Core;

namespace Solution
{
    public partial class Album : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var albumSlider = (AlbumSlider) this.LoadControl("Controls/AlbumSlider.ascx");
            var relatedAlbums = (AlbumsOfAuthor)this.LoadControl("Controls/AlbumsOfAuthor.ascx");
            var author = (AuthorDetail)this.LoadControl("Controls/AuthorDetail.ascx");

            phdAlbum.Controls.Add(albumSlider);
            phdAuthorDetail.Controls.Add(author);
            phdAlbumsOfAuthor.Controls.Add(relatedAlbums);
        }
    }
}